import api from '@/api/api'

const helpRoles = {
  name: '辅助',
  role: '/help',
  children: [
    {
      name: '生成索引',
      role: '/fullTextSearch',
      api: [api.fullTextSearchChannelList],
      children: [
        {
          name: '生成索引',
          role: '/fullTextSearch/createIndex',
          api: [api.fullTextSearchCreate]
        }]
    },
    {
      name: '字典',
      role: '/dictionary',
      api: [api.dictionaryList],
      children: [
        {
          name: '列表',
          role: '/dictionary/list',
          api: [api.dictionaryList]
        },
        {
          name: '删除',
          role: '/dictionary/delete',
          api: [api.dictionaryDelete]
        },
        {
          name: '添加',
          role: '/dictionary/add',
          api: [api.dictionarySave, api.dictionaryCheckValue]
        },
        {
          name: '详情',
          role: '/dictionary/get',
          api: [api.dictionaryGet,]
        },
        {
          name: '修改',
          role: '/dictionary/update',
          api: [api.dictionaryUpdate, api.dictionaryCheckValue]
        }
      ]
    },
    {
      name: '内容回收站',
      role: '/contentCycle',
      api: [api.contentList],
      children: [
        {
          name: '列表',
          role: '/contentCycle/list',
          api: [api.contentList]
        },
        {
          name: '删除',
          role: '/contentCycle/delete',
          api: [api.contentCycleDelete]
        },
        {
          name: '还原',
          role: '/contentCycle/Recycle',
          api: [api.contentCycleRecycle]
        },
      ]
    },
    {
      name: '定时任务',
      role: '/crontab',
      api: [api.crontabList],
      children: [
        {
          name: '列表',
          role: '/crontab/list',
          api: [api.crontabList]
        },
        {
          name: '详情',
          role: '/crontab/get',
          api: [api.crontabGet]
        },
        {
          name: '添加',
          role: '/crontab/save',
          api: [api.crontabSave, api.fullTextSearchChannelList, api.ftpList, api.acquisitionList]
        },
        {
          name: '修改',
          role: '/crontab/update',
          api: [api.crontabUpdate, api.fullTextSearchChannelList, api.ftpList, api.acquisitionList]
        },
        {
          name: '删除',
          role: '/crontab/delete',
          api: [api.crontabDelete]
        },
      ]
    },

    {
      name: '附件管理',
      role: '/file',
      api: [api.fileList,
        api.siteConfigGet],
      children: [
        {
          name: '列表',
          role: '/file/list',
          api: [api.adList]
        },
        {
          name: '删除',
          role: '/file/delete',
          api: [api.fileDelete]
        },
        {
          name: '删除所有失效文件',
          role: '/file/fileInvalid',
          api: [api.fileInvalid,]
        },
        {
          name: '标志原有附件有效',
          role: '/file/fileEffective',
          api: [api.fileEffective]
        }
      ]
    },

    {
      name:'二维码生成',
      role:'/dimensioncode',
      api: [api.dimensioncodeCreate],
      children:[
        {
          name: '创建',
          role: '/dimensioncode/create',
          api: []
        }
      ]
    },
    {
      name: '评分组管理',
      role: '/scoregroup',
      api: [api.scoregroupList],
      children: [
        {
          name: '列表',
          role: '/scoregroup/list',
          api: [api.scoregroupList]
        },
        {
          name: '删除',
          role: '/scoregroup/delete',
          api: [api.scoregroupDelete]
        },
        {
          name: '添加',
          role: '/scoregroup/add',
          api: [api.scoregroupSave]
        },
        {
          name: '详情',
          role: '/scoregroup/get',
          api: [api.scoregroupGet,]
        },
        {
          name: '修改',
          role: '/scoregroup/update',
          api: [api.scoregroupUpdate]
        },
        {
          name: '评分项管理',
          role: '/scoregroup/scoreitem',
          api: [api.scoreitemList],
          children: [
            {
              name: '列表',
              role: '/scoregroup/scoreitem/list',
              api: [api.scoreitemList]
            },
            {
              name: '详情',
              role: '/scoregroup/scoreitem/get',
              api: [api.scoreitemGet]
            },
            {
              name: '添加',
              role: '/scoregroup/scoreitem/add',
              api: [api.scoreitemSave]
            },
            {
              name: '修改',
              role: '/scoregroup/scoreitem/edit',
              api: [api.scoreitemUpdate]
            },
            {
              name: '删除',
              role: '/scoregroup/scoreitem/delete',
              api: [api.scoreitemDelete]
            }
          ]
        }
      ]
    },
    {
      name: '词汇管理',
      role: '/word',
      children: [
        {
          name: 'tag管理',
          role: '/tag',
          api: [api.wordTagList],
          children: [
            {
              name: '列表',
              role: '/tag/list',
              api: [api.wordTagList],
            },
            {
              name: '详情',
              role: '/tag/get',
              api: [api.wordTagGet],
            },
            {
              name: '添加',
              role: '/tag/add',
              api: [api.wordTagSave, api.wordTagCheckName],
            },
            {
              name: '修改',
              role: '/tag/edit',
              api: [api.wordTagUpdate, api.wordTagCheckName],
            },
            {
              name: '删除',
              role: '/tag/delete',
              api: [api.wordTagDelete],
            }
          ]
        },
        {
          name: '关键词管理',
          role: '/keyword',
          api: [api.wordKeywordList],
          children: [
            {
              name: '列表',
              role: '/keyword/list',
              api: [api.wordKeywordList],
            },
            {
              name: '详情',
              role: '/keyword/get',
              api: [api.wordSensitivityGet],
            },
            {
              name: '添加',
              role: '/keyword/add',
              api: [api.wordSensitivitySave],
            },
            {
              name: '修改',
              role: '/keyword/edit',
              api: [api.wordSensitivityUpdate],
            },
            {
              name: '删除',
              role: '/keyword/delete',
              api: [api.wordSensitivityDelete],
            }
          ]
        },
        {
          name: '来源管理',
          role: '/origin',
          api: [api.wordOriginList],
          children: [
            {
              name: '列表',
              role: '/origin/list',
              api: [api.wordOriginList],
            },
            {
              name: '详情',
              role: '/origin/get',
              api: [api.wordOriginGet],
            },
            {
              name: '添加',
              role: '/origin/add',
              api: [api.wordOriginSave],
            },
            {
              name: '修改',
              role: '/origin/edit',
              api: [api.wordOriginUpdate],
            },
            {
              name: '删除',
              role: '/origin/delete',
              api: [api.wordOriginDelete],
            }
          ]
        },
        {
          name: '热词管理',
          role: '/searchwords',
          api: [api.wordSearchwordsList],
          children: [
            {
              name: '列表',
              role: '/searchwords/list',
              api: [api.wordSearchwordsList],
            },
            {
              name: '详情',
              role: '/searchwords/get',
              api: [api.wordSearchwordsGet],
            },
            {
              name: '添加',
              role: '/searchwords/add',
              api: [api.wordSearchwordsSave],
            },
            {
              name: '修改',
              role: '/searchwords/edit',
              api: [api.wordSearchwordsUpdate],
            },
            {
              name: '删除',
              role: '/searchwords/delete',
              api: [api.wordSearchwordsDelete],
            }
          ]
        }
      ]
    },
  ]
}
export default helpRoles;
